<script setup lang="ts">
defineProps({
  titleName: {
    type: String,
    default: ''
  },
  titleSpan: {
    type: String,
    default: ''
  }
})
</script>

<template>
  <div class="home-panel">
    <div class="container">
      <div class="head">
        <!-- 主标题和副标题 -->
        <h3>
          {{ titleName }}
          <small>{{titleSpan }}</small>
        </h3>
      </div>
      <!-- 主体内容区域 -->
      <!-- 插槽数据来源于父亲 -->
      <!--  -->
    </div>
    <slot name="contain"></slot>
  </div>
</template>

<style scoped lang="scss">
.home-panel {
  background-color: #fff;
   
  .container {
    width: 100%;
  .head {
    padding: 40px 0;
    h3 {
      font-size: 32px;
      font-weight: normal;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;
      small {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
}
}
</style>
